package com.WISSC.mapper;

import com.WISSC.bean.Student;
import com.WISSC.bean.StudentImage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 学员信息 Mapper 接口
 * </p>
 *
 * @author 张凯
 * @since 2019-05-05
 */
public interface StudentMapper extends BaseMapper<Student> {


    /**
     * @param map
     * @return 查询 + 分页
     */
    List<Student> selectStudent(@Param("map") Map map,@Param("admin")boolean admin);
    int countStudent(@Param("map") Map map,@Param("admin")boolean admin);

    /**
     * @param map
     * @return 学员登陆
     */
    List<Student> login(@Param("map")Map map);

    /**
     * @param idNumber
     * @return 轮滑等级证书 - 多证书显示
     */
    List<Student> getManyUrl(@Param("idNumber") String idNumber);

    Student certificate(@Param("idNumber")String idNumber);

    List<Student> getTeamCity(@Param("id") Long id);

    Student countPerson();

    List<Student> getStudent(@Param("map") Map map);

    Integer getCount(@Param("idNumber")String idNumber);

    List<Student> getImageUrl(@Param("map")Map map);

    List<Student> getStudentCount(@Param("idNumber")String idNumber);

    Student getidNumber(@Param("idNo")String idNo);

    //关联删除
    Integer deleteByIdStudent(@Param("id")Long id);
}
